﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zielonka.co.uk.extensions.system
{
    public static partial class DateTimeExtensions
    {
        /// <summary>
        /// Gets a DateTime representing noon on the current date
        /// </summary>
        /// <param name="current">The current date</param>
        /// <param name="value">The value.</param>
        /// <returns></returns>
        public static DateTime ChangeDays(this DateTime current, int value)
        {
            return new DateTime(current.Year, current.Month, current.Day + value, current.Hour, current.Minute, current.Second, current.Millisecond);            
        }
    }
}
